package com.kasax.imgloader.v1.utils;

import android.widget.ImageView;

import com.kasax.imgloader.v1.DisplayImageOptions;

public class Utils {
    public static void handleScaleType(ImageView imageView, DisplayImageOptions.ScaleType scaleType) {
        switch (scaleType) {
            case FIT_XY:
                imageView.setScaleType(ImageView.ScaleType.FIT_XY);
                break;
            default:
                imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
                break;
        }
    }
}
